package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

class Solution219 {
    public boolean containsNearbyDuplicate(int[] nums, int k) {
        return ArrayUtils.containsNearbyDuplicate(nums, k);
    }
}

public class leetcode219 {
    public static void main(String[] args) {
        Solution219 solution219 = new Solution219();
        int[] nums = {1, 2, 3, 1};
        int[] nums1 = {1, 2, 3, 1, 2, 3};
        System.out.println(solution219.containsNearbyDuplicate(nums, 3));
        System.out.println(solution219.containsNearbyDuplicate(nums1, 2));
    }
}
